home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / clipper / rpcxlb10.zip / RPCXLIB.CH < prev    next >
Text File  |  1993-08-12  |  4KB  |  133 lines

  1. /***
  2. *    RPCXLib.ch
  3. *    Definitions for the RPCXLib - library
  4. *
  5. *    Copyright (c) 1993  Rolf van Gelder
  6. *
  7. *    Date: 11/08/93
  8. */
  9.  
  10. *==========================================================================
  11. *    Codes for SUPERVGA adapters
  12. *==========================================================================
  13.  
  14. #define    PL_SVGA_UNKNOWN        0
  15.  
  16. * Tested adapters
  17.  
  18. #define    PL_SVGA_TSENG4000    1
  19. #define    PL_SVGA_TRIDENT        2
  20. #define    PL_SVGA_VESA        3
  21. #define    PL_SVGA_TSENG3000    4
  22. #define    PL_SVGA_AHEAD        5
  23. #define    PL_SVGA_ATI        6
  24. #define    PL_SVGA_CHIPSTECH    7
  25. #define    PL_SVGA_EVEREX        8
  26. #define    PL_SVGA_GENOA        9
  27. #define    PL_SVGA_NCR        10
  28. #define    PL_SVGA_OAKTECH        11
  29. #define    PL_SVGA_PARADISE    12
  30. #define    PL_SVGA_VIDEO7        13
  31.  
  32. * Number of valid SUPERVGA adapters
  33. #define    PL_SVGA_VALID        13
  34.  
  35. * Names of recognised SUPERVGA adapters
  36. #define    PL_SVGA_NAMES    { 'Tseng Labs ET4000',;
  37.                           'Trident 8800/8900',;
  38.                           'VESA BIOS extensions',;
  39.                           'Tseng Labs ET3000',;
  40.                           'Ahead Systems A & B',;
  41.                           'ATI Wonder Card',;
  42.                           'Chips & Technologies',;
  43.                           'Everex VGA',;
  44.                           'Genoa GVGA',;
  45.                           'NCR 77C22',;
  46.                           'Oak Technologies OTI-67',;
  47.                           'Paradise VGA',;
  48.                           'Video 7' }
  49.  
  50. *-- Function to see if there is a supported SUPERVGA adapter
  51. #translate R_IsSVGA () => (R_VGACard() > 0 .and. R_VGACard() <= PL_SVGA_VALID)
  52.  
  53. *==========================================================================
  54. *    Codes for GRAPHIC adapters
  55. *==========================================================================
  56.  
  57. #define    PL_EGA            1
  58. #define    PL_VGA            2
  59. #define    PL_SVGA            3
  60.  
  61.  
  62. *==========================================================================
  63. *    Return codes for R_ShowPCX () & R_PCXInfo ()
  64. *==========================================================================
  65.  
  66. #define    PL_OKAY            0
  67. #define    PL_INVALID_PARAMETER    1
  68. #define    PL_OPEN_PCX        2
  69. #define    PL_READ_PCX        3
  70. #define    PL_NO_PCXFILE        4
  71. #define    PL_INVALID_BPP        5
  72. #define    PL_INVALID_DIM        6
  73. #define    PL_UNKNOWN_SVGA        7
  74. #define    PL_OPEN_DRIVER        8
  75. #define    PL_READ_DRIVER        9
  76. #define    PL_SVGA_NOTSUPPORTED    10
  77. #define    PL_BUFFER_MEMORY    11
  78.  
  79. #define    PL_ERRMSG    { 'Invalid parameter passed',;
  80.               'Error OPENING PCX-file',;
  81.                           'Error READING PCX-file',;
  82.                           'File is no valid PCX-file',;
  83.                           'Invalid number of BPP',;
  84.                           'PCX-file has invalid dimensions',;
  85.                           'Unknown SuperVGA-card',;
  86.                           'Error OPENING RPCXLIB.GDR driver',;
  87.                           'Error READING RPCXLIB.GDR driver',;
  88.                           'SuperVGA-card not supported (yet)',;
  89.                   'Not enough memory for buffer' }
  90.  
  91. *==========================================================================
  92. *    VGA-palette registers for Clipper colours
  93. *==========================================================================
  94.  
  95. #define    PL_BLACK        0
  96. #define    PL_BLUE            1
  97. #define    PL_GREEN        2
  98. #define    PL_CYAN            3
  99. #define    PL_RED            4
  100. #define    PL_MAGENTA        5
  101. #define    PL_BROWN        6
  102. #define    PL_WHITE        7
  103. #define    PL_GREY            56
  104. #define    PL_BRIGHT_BLUE        57
  105. #define    PL_BRIGHT_GREEN        58
  106. #define    PL_BRIGHT_CYAN        59
  107. #define    PL_BRIGHT_RED        60
  108. #define    PL_BRIGHT_MAGENTA    61
  109. #define    PL_YELLOW        62
  110. #define    PL_BRIGHT_WHITE        63
  111.  
  112. *--------------------------------------------------------------------------
  113. * Composition of the DEFAULT CLIPPER colours
  114. *                { Red, Green, Blue } components
  115. *--------------------------------------------------------------------------
  116. #define    PL_DEF_BLACK        {  0,  0,  0 }
  117. #define    PL_DEF_BLUE        {  0,  0, 42 }
  118. #define    PL_DEF_GREEN        {  0, 42,  0 }
  119. #define    PL_DEF_CYAN        {  0, 42, 42 }
  120. #define    PL_DEF_RED        { 42,  0,  0 }
  121. #define    PL_DEF_MAGENTA        { 42,  0, 42 }
  122. #define    PL_DEF_BROWN        { 42, 21,  0 }
  123. #define    PL_DEF_WHITE        { 42, 42, 42 }
  124. #define    PL_DEF_GREY        { 21, 21, 21 }
  125. #define    PL_DEF_BRIGHT_BLUE    { 21, 21, 63 }
  126. #define    PL_DEF_BRIGHT_GREEN    { 21, 63, 21 }
  127. #define    PL_DEF_BRIGHT_CYAN    { 21, 63, 63 }
  128. #define    PL_DEF_BRIGHT_RED    { 63, 21, 21 }
  129. #define    PL_DEF_BRIGHT_MAGENTA    { 63, 21, 63 }
  130. #define    PL_DEF_YELLOW        { 63, 63, 21 }
  131. #define    PL_DEF_BRIGHT_WHITE    { 63, 63, 63 }
  132. *
  133. * Eof RPCXLib.CH